package com.ruoyix.weblog.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyix.common.annotation.ExcelDictFormat;
import com.ruoyix.common.convert.ExcelDictConvert;
import com.ruoyix.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 文章评论视图对象 blog_comment
 *
 * @author ruoyi
 * @date 2024-05-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ExcelIgnoreUnannotated
public class BlogCommentVo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 评论来源标识
     */
    @ExcelProperty(value = "评论来源标识")
    private Long source;

    /**
     * 评论来源类型
     */
    @ExcelProperty(value = "评论来源类型")
    private String type;

    /**
     * 父评论ID
     */
    @ExcelProperty(value = "父评论ID")
    private Long parentCommentId;

    /**
     * 发表用户ID
     */
    @ExcelProperty(value = "发表用户ID")
    private Long userId;

    /**
     * 楼层评论ID
     */
    @ExcelProperty(value = "楼层评论ID")
    private Long floorCommentId;

    /**
     * 父发表用户名ID
     */
    @ExcelProperty(value = "父发表用户名ID")
    private Long parentUserId;

    /**
     * 点赞数
     */
    @ExcelProperty(value = "点赞数")
    private Long likeCount;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String commentContent;

    /**
     * 评论额外信息
     */
    @ExcelProperty(value = "评论额外信息")
    private String commentInfo;


    private List<BlogCommentVo> childComments;


}
